<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="x"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
${msg1}
<a href="${pageContext.request.contextPath}/lookCart">查看购物车</a>

<a href="${pageContext.request.contextPath}/selectuserInfor">查询用户信息</a>

<a href="${pageContext.request.contextPath}/insertuserInfor">填写用户信息</a>
<a href="${pageContext.request.contextPath}/lookAddress">查看用户地址</a>
<a href="${pageContext.request.contextPath}/allOrder">全部</a>
<a href="${pageContext.request.contextPath}/waiting">待发货</a>
<a href="${pageContext.request.contextPath}/already">已发货</a>
<a href="${pageContext.request.contextPath}/signed">已签收</a>
	<table border=1 align="center">
		<tr>
			<td>产品</td>
			<td>价格</td>
			<td>图片</td>
			<td>详细查看</td>
		</tr>
		<x:forEach items="${stock}" var="stock">
		<tr>
			<td>${stock.product}</td>
			<td>${stock.price}</td>
			<td><img src="${pageContext.request.contextPath }/${stock.url}"/></td>
			<form action="${pageContext.request.contextPath}/detailGoods">
			<td>
				<input type="hidden" name = "stock_id" value = "${stock.stock_id}">
				<input type="submit" value="详细查看"></td>
			</form>
		</tr>
		</x:forEach>
	</table>
	</form>
</body>
</html>